package com.jeremyfeinstein.gson.bean;

import java.util.List;

/**
 * @author : lishan
 * @e-mail : cnlishan@163.com
 * @date : 2021/2/8 10:55 AM
 * @desc :
 */
public class QueryDeviceBean {
    /**
     * opContext : 查询条件【设备名称:XiaomiHQS8BIDE7LSK6L4S,开始页:1,每页显示条数:10,排序字段：创建时间,排序类型：降序】
     * resultCode : 200
     * resultHint : 查询成功
     * resultValue : {"pageNo":1,"pageSize":10,"rows":[{"authorizationStatus":0,"consumeFlowTotal":0,"createTime":"2021年02月27日 10:20:13","devCode":"863100032945127","devName":"XiaomiHQS8BIDE7LSK6L4S","devStatus":0,"id":"264ed20507d445278938bf8f6bf8c482","requestIpHttp":"172.16.20.206","runtimeTotal":0}],"total":1}
     * successful : true
     */

    private String opContext;
    private String resultCode;
    private String resultHint;
    private List<ResultValueBean> resultValue;
    private boolean successful;

    public String getOpContext() {
        return opContext;
    }

    public void setOpContext(String opContext) {
        this.opContext = opContext;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultHint() {
        return resultHint;
    }

    public void setResultHint(String resultHint) {
        this.resultHint = resultHint;
    }

    public List<ResultValueBean> getResultValue() {
        return resultValue;
    }

    public void setResultValue(List<ResultValueBean> resultValue) {
        this.resultValue = resultValue;
    }

    public boolean isSuccessful() {
        return successful;
    }

    public void setSuccessful(boolean successful) {
        this.successful = successful;
    }

    public static class ResultValueBean {
        /**
         * pageNo : 1
         * pageSize : 10
         * rows : [{"authorizationStatus":0,"consumeFlowTotal":0,"createTime":"2021年02月27日 10:20:13","devCode":"863100032945127","devName":"XiaomiHQS8BIDE7LSK6L4S","devStatus":0,"id":"264ed20507d445278938bf8f6bf8c482","requestIpHttp":"172.16.20.206","runtimeTotal":0}]
         * total : 1
         */

        private int pageNo;
        private int pageSize;
        private int total;
        private List<RowsBean> rows;

        public int getPageNo() {
            return pageNo;
        }

        public void setPageNo(int pageNo) {
            this.pageNo = pageNo;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List<RowsBean> getRows() {
            return rows;
        }

        public void setRows(List<RowsBean> rows) {
            this.rows = rows;
        }

        public static class RowsBean {
            /**
             * authorizationStatus : 0
             * consumeFlowTotal : 0.0
             * createTime : 2021年02月27日 10:20:13
             * devCode : 863100032945127
             * devName : XiaomiHQS8BIDE7LSK6L4S
             * devStatus : 0
             * id : 264ed20507d445278938bf8f6bf8c482
             * requestIpHttp : 172.16.20.206
             * runtimeTotal : 0.0
             */

            private int authorizationStatus;
            private double consumeFlowTotal;
            private String createTime;
            private String devCode;
            private String devName;
            private int devStatus;
            private String id;
            private String requestIpHttp;
            private double runtimeTotal;

            public int getAuthorizationStatus() {
                return authorizationStatus;
            }

            public void setAuthorizationStatus(int authorizationStatus) {
                this.authorizationStatus = authorizationStatus;
            }

            public double getConsumeFlowTotal() {
                return consumeFlowTotal;
            }

            public void setConsumeFlowTotal(double consumeFlowTotal) {
                this.consumeFlowTotal = consumeFlowTotal;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public String getDevCode() {
                return devCode;
            }

            public void setDevCode(String devCode) {
                this.devCode = devCode;
            }

            public String getDevName() {
                return devName;
            }

            public void setDevName(String devName) {
                this.devName = devName;
            }

            public int getDevStatus() {
                return devStatus;
            }

            public void setDevStatus(int devStatus) {
                this.devStatus = devStatus;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getRequestIpHttp() {
                return requestIpHttp;
            }

            public void setRequestIpHttp(String requestIpHttp) {
                this.requestIpHttp = requestIpHttp;
            }

            public double getRuntimeTotal() {
                return runtimeTotal;
            }

            public void setRuntimeTotal(double runtimeTotal) {
                this.runtimeTotal = runtimeTotal;
            }

            @Override
            public String toString() {
                return "RowsBean{" +
                        "authorizationStatus=" + authorizationStatus +
                        ", consumeFlowTotal=" + consumeFlowTotal +
                        ", createTime='" + createTime + '\'' +
                        ", devCode='" + devCode + '\'' +
                        ", devName='" + devName + '\'' +
                        ", devStatus=" + devStatus +
                        ", id='" + id + '\'' +
                        ", requestIpHttp='" + requestIpHttp + '\'' +
                        ", runtimeTotal=" + runtimeTotal +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "ResultValueBean{" +
                    "pageNo=" + pageNo +
                    ", pageSize=" + pageSize +
                    ", total=" + total +
                    ", rows=" + rows +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "QueryDeviceBean{" +
                "opContext='" + opContext + '\'' +
                ", resultCode='" + resultCode + '\'' +
                ", resultHint='" + resultHint + '\'' +
                ", resultValue=" + resultValue +
                ", successful=" + successful +
                '}';
    }
}
